<html>
<body>
<script>
	var clz = function (){
		this.name = "hello";
	};
	clz["newname"] = "newname in clz";
	var obj = new clz();
	obj.myname = "myname";

	obj["newname2"] = "newname2 in obj";
	console.log(clz.hasOwnProperty('name'));
	console.log(clz.hasOwnProperty('myname'));
	console.log(obj.hasOwnProperty('name'));
	
	console.log(obj.hasOwnProperty('myname'));

	console.log(clz.hasOwnProperty('newname'));
	console.log(obj.hasOwnProperty('newname2') + "," + obj.newname2);
</script>
</body>
</html>